-
Notifications
You must be signed in to change notification settings - Fork 7
Add Nonadmin restore #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: oadp-dev
Are you sure you want to change the base?
Conversation
} | ||
|
||
// createFilteredVeleroOutput creates a Velero-style output with non-admin field restrictions applied | ||
func createFilteredVeleroOutput(veleroBackup *velerov1.Backup, nab *nacv1alpha1.NonAdminBackup) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This func is pretty long. Do you think you can factor out into several functions for each section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored into multiple funcs
The NonAdminRestore --details option fails because it tries to fetch the restore from the admin namespace |
Adds nonadmin restore functionality to oadp-cli